package ua.com.stormlabs.tiny.licenseserver.storage;

import org.springframework.data.jpa.repository.JpaRepository;
import ua.com.stormlabs.tiny.licenseserver.storage.entities.LicenseEntity;
import ua.com.stormlabs.tiny.licenseserver.storage.entities.UserEntity;

import java.util.List;

/**
 * @author mbondarenko
 * @version 1.0 8/1/12
 */
public interface UsersRepository extends JpaRepository<UserEntity, Integer> {

    UserEntity findByUserName(String userName);

    List<UserEntity> findByLicense(LicenseEntity licenseEntity);
}
